import request from '@/utils/request.js'
// import store from '@/store'
export function apiReg (data) {
  return request({
    url: '/api/reg',
    method: 'post',
    data: data
  })
}
export function apiLogin (data) {
  return request({
    url: '/api/login',
    method: 'post',
    data: data
  })
}

export function myUserinfo () {
  return request({
    url: '/my/userinfo'
    // headers: {
    //   Authorization: store.state.login.token
    // }
  })
}
